<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户管理</title>
    <style>
        table{
            border-collapse: collapse;
            border: 2px solid black;
        }
        td, th {
            padding: 2px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <table>
        <thead>
        <tr>
            <th scope="col">ID</th>
            <th scope="col">用户名</th>
            <th scope="col">密码</th>
            <th scope="col">昵称</th>
            <th scope="col">盐</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user: ${ users }">
            <!--/*@thymesVar id="user" type="com.example.mybatispermission.entry.User"*/-->
            <td th:text="${ user.id }"></td>
            <td th:text="${ user.username }"></td>
            <td th:text="${ user.password }"></td>
            <td th:text="${ user.nickname }"></td>
            <td th:text="${ user.passwordSalt }"></td>
            <td>
                <a th:if="${ user.id != 1 }" th:href='${ "/manager/user/delete?id=" + user.id }'>删除</a>
                <a th:href='${ "/manager/user/info?id=" + user.id }'>修改</a>
            </td>

        </tr>
        </tbody>
    </table>
</body>
</html>